namespace Brjnk.GpxExplorer.Workspace.BitmapExport
{
    using System;
    using System.Windows.Controls;
    using System.Windows.Data;

    /// <summary>
    /// </summary>
    public class ContentLayoutToOrientationConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if ((object)value == null) return null;
            if (((ContentLayout)value) == ContentLayout.Horizontal) return Orientation.Horizontal;
            else return Orientation.Vertical;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}